home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 433 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. From: clamage@Eng.Sun.COM (Steve Clamage)
  2. Message-ID: <4gfkv5$ju2@engnews1.Eng.Sun.COM>
  3. X-Original-Date: 21 Feb 1996 17:32:21 GMT
  4. Path: in2.uu.net!bounce-back
  5. Date: 22 Feb 96 02:51:38 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: Namespace extension
  9. Organization: Sun Microsystems Inc.
  10. References: <4gf60c$cdt@ugress.uib.no>
  11. Reply-To: clamage@Eng.Sun.COM
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBFAgUBMSvaTeEDnX0m9pzZAQEbmwF+Kyc125MJ56+6Wn07cyl0Jc2FXT4ggIGy
  14.     cVgVyaU+kCXitVD0rKbMu9OyKNbRPX3+
  15.     =s4Yz
  16.  
  17. In article cdt@ugress.uib.no, boukanov@hadron.fi.uib.no (Igor Boukanov)
  18. writes:
  19.  
  20. >template <class T> namespace unique { 
  21. > ...
  22. >}
  23. >using namespace unique<T>;
  24. >
  25. >but namespace unique is predefined ...
  26.  
  27. Actually not. The description of the unnamed namespace uses the word
  28. "unique" in italics to represent an arbitrary name chosen by the
  29. compiler which is different from all other names in the program.
  30.  
  31. You can use the name "unique" for any purpose; it is not reserved or
  32. predefined.
  33. ---
  34. Steve Clamage, stephen.clamage@eng.sun.com
  35. ---
  36. [ To submit articles: try just posting with your news-reader.
  37.                       If that fails, use mailto:std-c++@ncar.ucar.edu
  38.   FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  39.   Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  40.   Comments? mailto:std-c++-request@ncar.ucar.edu.
  41. ]
  42.